<?php
/**
 * 活动（游戏）
 *
 * @author Administrator
 *
 */
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Act extends Model
{
    protected $table = 'act';

    protected $guarded = [''];

    protected function getDateFormat()
    {
        return 'U';
    }

    public function actPrizeSetting()
    {
        return $this->hasMany('App\Models\ActPrizeSetting', 'act_id', 'id');
    }

    public function type()
    {
        return $this->belongsTo('App\Models\ActType', 'type_id', 'id');
    }
}
